const mutations ={
  incr(state,goods){
    const oldGoods = state.shopCart.find(e=>e.iid==goods.iid)
      if(oldGoods){
        oldGoods.count++
      }else{
        goods.count=1
        goods.checked=true
        state.shopCart.push(goods)
      }
  }
}

export default mutations